package 线程.day3.demo1;

public class Sell implements Runnable{
    static int num=1000;

    @Override
    public void run() {
        while (num>0){
            try {
                Thread.sleep(10);
            } catch (InterruptedException e) {}
            System.out.println(Thread.currentThread().getName()+"卖出票："+num);

            num--;
        }
    }
}
